package com.cooba.application;

import android.app.Application;
import android.view.WindowManager;

import com.cooba.utils.CrashHandler;

/**
 * Created by Administrator on 2016/5/17.
 */
public class MyApplication extends Application {

    private static MyApplication myApplication = null;
    private Boolean isInCar;
    private String mac;
    private Boolean isStart;
    private String factoryName;
    private Boolean isCanClean;

    public static MyApplication getMyApplication() {
        return myApplication;
    }

    public Boolean getIsInCar() {
        return isInCar;
    }

    public void setIsInCar(Boolean isInCar) {
        this.isInCar = isInCar;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public Boolean getIsStart() {
        return isStart;
    }

    public void setIsStart(Boolean isStart) {
        this.isStart = isStart;
    }

    public Boolean getIsCanClean() {
        return isCanClean;
    }

    public void setIsCanClean(Boolean isCanClean) {
        this.isCanClean = isCanClean;
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        myApplication = this;
        //CrashHandler crashHandler = CrashHandler.getInstance();
        //crashHandler.init(getApplicationContext());
        setIsStart(true);
        setIsInCar(false);
        setIsCanClean(true);
    }
}
